package com.lagou.model;

import java.io.Serializable;

/**
 * @author liuchangling
 * @date 2021/4/29 6:18 PM
 * @descripion
 */
public class Exam implements Serializable {
    /**
     * 题目序号
     */
    private Integer id;
    /**
     * 题目问题
     */
    private String question;
    /**
     * 题目答案
     */
    private String answer;

    public Exam(Integer id, String question, String answer) {
        this.id = id;
        this.question = question;
        this.answer = answer;
    }

    public Exam() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    @Override
    public String toString() {
        return "Exam{" +
                "id=" + id +
                ", question='" + question + '\'' +
                ", answer='" + answer + '\'' +
                '}';
    }
}
